// SEE END OF FILE FOR LICENSE TERMS

//#include "Database_defines.h"

// Database functions for database access

// The database data is accessed in terms of data records
// Whole records can be read or written.
// If data in the database is organised as an array, the offset and number of array elements can be set.

// Data access functions
unsigned int DBWriteData(unsigned int idRef, void* pData, unsigned char arrayCount, unsigned char arrayOffset);
unsigned int DBReadData(unsigned int idRef, void* pData, unsigned char arrayCount, unsigned char arrayOffset);

// WriteBits may not be supportable. Use a write function instead.
//unsigned int DBWriteBits(unsigned int idRef, unsigned int setMask, unsigned int clearMask, unsigned int offset);

// Functions for determining the size of data records in the database.
unsigned int DBGetDataSize(unsigned int idRef);
unsigned int DBGetDataArraySize(unsigned int idRef, unsigned char ArrayCount, unsigned char ArrayIndex);
unsigned int DBGetArraySize(unsigned int idRef);
unsigned int DBGetArrayCountFromByteCount(unsigned int idRef, unsigned int byteCount);
unsigned int DBGetTypeSize(unsigned int idRef);

// void (* DBwriteFunction) (unsigned int idRef, void* pData, unsigned char arrayCount, unsigned char arrayOffset);
// void (* sio_parse ) ( unsigned char inchar ) = &sio_newMsg ;


/****************************************************************************/
// This is part of the servo and radio interface software
//
// ServoInterface source code
//	http://code.google.com/p/rc-servo-interface
//
// Copyright 2010 ServoInterface Team
// See the AUTHORS.TXT file for a list of authors of ServoInterface.
//
// ServoInterface is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// ServoInterface is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License 
// along with ServoInterface.  If not, see <http://www.gnu.org/licenses/>.
//
// Many parts of ServoInterface use either modified or unmodified code
// from the MatrixPilot pilot project.
// The project also contains code for modifying MatrixPilot to operate
// with ServoInterface.
// For details, credits and licenses of MatrixPilot see the AUTHORS.TXT file.
// or see this website: http://code.google.com/p/gentlenav
/****************************************************************************/
